import { request } from "./axios";
// https://www.jzvcode.com/gitex_crm/users_data.php
// https://www.jzvcode.com/gitex_crm/detect_face.php
// https://www.jzvcode.com/gitex_crm/build.php
/**
 * 人像检测接口
 * @param params 
 * @returns 
 */
export const detectFace = (params: any) => {
  return request("/detect_face", params, "post");
};

/**
 * 图像生成接口：/build
 * @param params 
 * @returns 
 */
export const buildImage = (params: any) => {
  return request("/build", params, "post");
};

/**
 * 待机画面接口：/users_data
 * @param params 
 * @returns 
 */
export const usersData = (params: any) => {
  return request("/users_data", params, "get");
};

export const upload = (params: any) => {
  return request("/upload", params, "post");
};